<template>
  <div class="m-3 flex">
    <div class="flex-1">
      <seasonTree @HousingTreeData="handleClick" @ExchangeTreeData="handleClick" />
    </div>
    <div class="ml-2 flex-1">
      <!-- <seasonTable :Keys="TreeKeys" :Type="TreeType" :Info="TreeInfo" /> -->
      <seasonTable :Keys="TreeKeys" :Type="TreeType" :Info="TreeInfo" />
    </div>
  </div>
</template>
<script lang="ts" setup>
import seasonTable from './components/season/seasonTable.vue';
import seasonTree from './components/season/seasonTree.vue';
import { reactive, ref } from 'vue';
const TreeKeys = ref([]);
const TreeType = ref('');
const TreeInfo = ref([]);
const handleClick = (keys: any, type: any, info: any) => {
  TreeKeys.value = keys;
  TreeType.value = type;
  TreeInfo.value = info;
  console.log('接收子组件传来的数据', keys, TreeType.value, info);
};
</script>
<style scoped></style>
